/*
 * CS Photo Selector
 * @author: Carson Shold (@cshold)
*/

#CSPhotoSelector .overlaywholescreen,
#CSPhotoSelectorLoading .overlaywholescreen,
#CSPhotoSelectorNoPhotos .overlaywholescreen
{
    background-color: black;
    bottom: 0;
    left: 0;
    /*opacity: 0.5;*/
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 54000;
    filter: alpha(opacity=50);
}

#CSPhotoSelector,
#CSPhotoSelectorLoading,
#CSPhotoSelectorNoPhotos {
	display: none;
	width: 100%;
	padding: 0;
	position: absolute;
	left: 0;
	top: 160px;
	z-index: 1000;
	color: #333;
	font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
	font-size: 11px;
}
#CSPhotoSelector a,
#CSPhotoSelector a:active,
#CSPhotoSelector a:hover,
#CSPhotoSelector a:visited {
	text-decoration: none;
	color: #3B5998;
}
#CSPhotoSelector p,
#CSPhotoSelector ul,
#CSPhotoSelector li {
	margin: 0;
	padding: 0;
}
#CSPhotoSelector li {
	list-style-type: none;
}
#CSPhotoSelector .CSPhotoSelector_clearfix:before,
#CSPhotoSelector .CSPhotoSelector_clearfix:after {
	content: "";
	display: table;
}
#CSPhotoSelector .CSPhotoSelector_clearfix:after { clear: both; }
#CSPhotoSelector .CSPhotoSelector_clearfix { zoom: 1; }
#CSPhotoSelector .CSPhotoSelector_dialog,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog {
	width: 628px;
	padding: 10px;
	margin: 0 auto;
	position: relative;
	background: rgba(82, 82, 82, 0.7);
	overflow: hidden;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	z-index: 54001;
}
#CSPhotoSelector .CSPhotoSelector_dialog #CSPhotoSelector_buttonClose {
	position: absolute;
	right: 18px;
	top: 15px;
	font-size: 16px;
}
#CSPhotoSelector .CSPhotoSelector_dialog #CSPhotoSelector_buttonClose,
#CSPhotoSelector .CSPhotoSelector_dialog #CSPhotoSelector_buttonClose:active,
#CSPhotoSelector .CSPhotoSelector_dialog #CSPhotoSelector_buttonClose:hover,
#CSPhotoSelector .CSPhotoSelector_dialog #CSPhotoSelector_buttonClose:visited {
	color: #fff;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_form,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_form,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_form {
	border: 1px solid #3B5998;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_header,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_header ,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_header {
	padding: 7px 10px;
	background: #6D84B4;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_content {
	background: #fff;
	padding: 10px;
}

#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_content,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_content
{
     text-align:center;
	background: #fff;
	padding: 30px;
	height: 200px;
}
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_content img 
{
    margin:20px;
}

#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer {
	margin-top: 10px;
	padding: 10px;
	background: #f1f1f1;
	border: solid #cacaca;
	border-width: 1px 0;
	font-weight: bold;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer .CSPhotoSelector_selectedCountContainer,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer .CSPhotoSelector_selectedCountContainer,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer .CSPhotoSelector_selectedCountContainer {
	float: left;
	padding: 3px 0;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer #CSPhotoSelector_backToAlbums,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer #CSPhotoSelector_backToAlbums,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_searchContainer #CSPhotoSelector_backToAlbums {
	float: right;
	padding: 3px 0;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer {
	margin: 10px 0 0;
}

#CSPhotoSelector .CSPhotoSelector_content,
#CSPhotoSelectorLoading .CSPhotoSelector_content,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_content {
	height: 400px;
}

#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album,
#CSPhotoSelectorNoPhotos .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album {
	position: relative;
	display: inline-block;
	width: 185px;
	margin: 0 8px 14px;
	cursor: pointer;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_albumWrap,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_albumWrap {
	position: relative;
	width: 175px;
	padding: 4px;
	border: 1px solid #ccc;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_albumWrap div,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_albumWrap div {
	height: 120px;
	overflow: hidden;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album .CSPhotoSelector_photoAvatar,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album .CSPhotoSelector_photoAvatar {
	display: block;
	max-width: 100%;
	border: none;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo,
#CSPhotoSelectorLoading .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo {
	position: relative;
	display: inline-block;
	border: 1px solid #ccc;
	background: #fff;
	padding: 4px;
	margin: 0 5px 3px;
	height: 96px;
	width: 127px;
	overflow: hidden;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo:hover,
#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_albumWrap:hover {
	background: #f0f0f0;
	border-color: #3B5998;
	cursor: pointer;
}

#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo.CSPhotoSelector_photoSelected
{
    background: #3B5998;
	border-color: #3B5998;
	border: 4px solid #3B5998;
	cursor: pointer;
	padding: 1px;
}

#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo.CSPhotoSelector_photoSelected img {
	border: 1px solid #3B5998;
}

#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo span {
	position: relative;
	display: block;
	overflow: hidden;
	height: 100%;
	width: 100%;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo .CSPhotoSelector_photoAvatar {
	position: relative;
	display: block;
	width: 120%;
	left: -10%;
	margin: 0 auto;
	border: none;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer .CSPhotoSelector_album .CSPhotoSelector_photoName {
	display: block;
	width: 100%;
	font-weight: bold;
	text-align: left;
	font-size: 12px;
	padding: 5px 0 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer .CSPhotoSelector_photo:hover .CSPhotoSelector_photoSelect {
	display: block;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer .CSPhotoSelector_photo.CSPhotoSelector_photoDisabled {
	cursor: default;
	/*opacity: .5;*/
	filter: alpha(opacity=50);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer .CSPhotoSelector_photo.CSPhotoSelector_photoDisabled:hover .CSPhotoSelector_photoSelect {
	display: none;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer .CSPhotoSelector_photo.CSPhotoSelector_photoFiltered {
	display: none;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer {
	padding: 8px 10px;
	background: #F2F2F2;
	border-top: 1px solid #CCC;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pagePrev,
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pageNext {
	float: left;
	height: 21px;
	width: 22px;
	overflow: hidden;
	text-indent: -999em;
	background: transparent url(images/csphotoselector-pagination.png) no-repeat 0 0;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pagePrev {
	background-position: -44px 0;
	margin-right: 2px;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pageNext {
	margin-right: 6px;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pagePrev.CSPhotoSelector_disabled {
	background-position: -66px 0;
	cursor: default;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_pageNext.CSPhotoSelector_disabled {
	background-position: -22px 0;
	cursor: default;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer .CSPhotoSelector_pageNumberContainer {
	float: left;
	padding: 4px 0 0;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_buttonOK,
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_buttonCancel {
	display: none;
	float: right;
	background: #3B5998;
	color: #fff;
	font-weight: bold;
	padding: 4px 20px 5px 20px;
	border: 1px solid;
	border-color: #D9DFEA #0E1F5B #0E1F5B #D9DFEA;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_footer #CSPhotoSelector_buttonCancel {
	display: block;
	border: 1px solid;
	border-color: #999 #999 #888 #999;
	background-color: #eee;
	color: #333;
	margin-right: 8px;
}


/* show/hide album and picture containers */
#CSPhotoSelector_loader {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: url(images/facebook_loader.gif) center center no-repeat rgba(255,255,255,0.5);
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
}
.CSPhotoSelector_wrapper {
	position: absolute;
	top: 43px;
	left: 670px;
	width: 606px;
	overflow: auto;
	
	-webkit-transition:	left 0.3s ease-in-out;
	-moz-transition:	left 0.3s ease-in-out;
	-o-transition:		left 0.3s ease-in-out;
	transition:			left 0.3s ease-in-out;
}
/* active photo container */
.CSPhoto_container_active {
	left: 11px;
}